package com.scz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.scz.entity.POrders;
import com.scz.mapper.POrdersMapper;
import com.scz.service.POrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class POrdersServiceImpl extends ServiceImpl<POrdersMapper, POrders> implements POrdersService {
    @Autowired
    private POrdersMapper pOrdersMapper;
    @Override
    public List<POrders> getDescByOrderId(String orderId) {
        return  pOrdersMapper.getDescByOrderId(orderId);
    }
}
